package com.example.tool.adapter;


import android.support.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.tool.R;
import com.example.tool.bean.CommonBean;

import java.util.List;

/**
 * @author : liangkun
 * Date : 2020/07/14
 * Describe :字典适配器
 **/
public class DictSelectAdapter extends BaseQuickAdapter<CommonBean, BaseViewHolder> {

    public DictSelectAdapter(List<CommonBean> data) {
        super(R.layout.common_item_select, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, CommonBean bean) {
        helper.setText(R.id.tv_select, bean.getDes());
    }
}
